* {
  margin: 0;
  padding: 0;
  text-decoration: none;
}

body,
html {
  width: 100%;
  height: 100%;
  background-color: #1f2227;
  background-image: url("/images/rain/矢量图/moon.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

// 导航栏背景图
.navigationBar {
  width: 100%;
  height: 200px;
  background-image: url("/images/rain/位图/乌云.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: fixed;
  top: 0px;
  right: 0px;
  left: 0px;
  z-index: 999;
  user-select: none;
}

// 雨滴的盒子
.rain-boxb {
  position: fixed;
  z-index: 10;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

// 雨滴的样式
hr:not(.thunder) {
  width: 50px;
  border-color: white;
  border-right-color: rgba(255, 255, 255, 0.6);
  border-right-width: 30px;
  position: absolute;
  bottom: 100%;
  animation-name: rain;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

// 雨滴的动画
@keyframes rain {
  from {
    transform: rotate(105deg) translateX(0);
  }

  to {
    transform: rotate(105deg) translateX(calc(100vh + 20px));
  }
}

// 打闪样式
div.thunder {
  z-index: 9;
  background-color: red;
  width: 100%;
  height: 100%;
  background-color: transparent;
  animation-name: thunder;
  animation-duration: var(--thunder-duration);
  animation-timing-function: linear;
  animation-delay: var(--thunder-delay);
  animation-iteration-count: infinite;
}

// 打闪的动画效果
@keyframes thunder {
  0% {
    background-color: transparent;
  }

  1% {
    background-color: white;
  }

  2% {
    background-color: rgba(255, 255, 255, 0.8);
  }

  8% {
    background-color: transparent;
  }
}

:root {
  //  第一个闪电在网页刷新5秒后闪
  --thunder-delay: 5s;
  // 下一个每次都在10秒之后
  --thunder-duration: 10s;
}

// 标题
.title {
  width: 600px;
  height: 200px;
  margin: 15% auto;

  h1 {
    width: 551px;
    height: 65px;
    font-size: 60px;
    color: white;
  }

  h4 {
    width: 267px;
    color: white;
    margin-top: 50px;
    margin-left: 300px;
  }
}

// 向下的按钮
.toBottomBox {
  z-index: 100;
  position: absolute;
  color: white;
  width: 37px;
  height: 37px;
  font-size: 40px;
  cursor: pointer;
  animation: xia-btn 2s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  bottom: 0px;
  top: 65%;
  left: 0px;
  right: 0px;
  margin: auto;
}

// 按钮的动画
@keyframes xia-btn {
  0% {
    bottom: 15%;
  }

  50% {
    bottom: 18%;
  }

  100% {
    bottom: 15%;
  }
}

// 下面内容的盒子
.bottom-box {
  width: 440px;
  height: 480px;
  margin: auto;

  .explain {
    display: flex;
    justify-content: center;
    margin-top: 25px;

    span {
      user-select: none;
      font-size: 20px;
      color: #edede5;
      display: none;
    }
  }
}

// 今天有什么想说的
.tada {
  user-select: none;
  font-size: 20px;
  color: #edede5;
  text-align: center;
}

// 文本框
.textarea-box {
  width: 800px;
  height: 100px;
  margin: auto;
  z-index: 200px;

  textarea {
    color: #edede5;
    font-family: "微软雅黑";
    width: 800px;
    height: 130px;
    background-color: transparent;
    position: relative;
    z-index: 220;
    border: 1.5px solid #ff8140;
    border-radius: 3px;
    outline: none;
    padding-left: 5px;
    padding: 5px;
    font-size: 16px;
    resize: none;
    background-repeat: no-repeat;
  }

  // 选择心情的按钮
  .mood {
    user-select: none;
    height: 30px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 220;
    margin-top: 10px;

    img {
      width: 30px;
      height: 30px;
      vertical-align: middle;
    }

    span {
      color: pink;
      font-size: 14px;
    }
  }

  // 发表按钮
  .publish {
    width: 82px;
    height: 30px;
    background-color: #ff8140;
    border-radius: 2px;
    font-size: 13px;
    color: #fff;
    outline: none;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    position: relative;
    float: right;
    z-index: 220;
  }
}

// 模态框
.writeBox {
  opacity: 0;
  float: left;
  width: 0px;
  height: 0px;
  user-select: none;
  z-index: 999999999;
  background-color: rgb(254, 255, 211);

  h4 {
    margin-top: 200px;
    text-align: center;
    text-align: center;
    color: rgb(255, 0, 234);
  }

  img {
    width: 70px;
    height: 70px;
  }

  .Modal-box {
    width: 550px;
    margin: auto;

    .header-box {
      width: 550px;
      height: 100px;
      line-height: 40px;

      .mood-text {
        text-align: center;
        color: rgb(107, 33, 245);
      }
    }

    .img-box {
      width: 550px;
      height: 100px;
      display: flex;

      .tu {
        width: 80px;
        margin-left: 20px;
        border: 1px solid transparent;
      }

      .tu:hover {
        width: 70px;
        border: 1px solid skyblue;
        height: 100px;
        cursor: pointer;
      }

      p {
        text-align: center;
        font-weight: 700;
      }
    }

    // 模态框页脚
    .foot-box {
      width: 550px;
      height: 200px;

      p {
        text-align: center;
        font-weight: 700;
        line-height: 40px;
      }

      .blackBox .title-a {
        text-align: center;
      }

      .blackBox .title-b {
        text-align: center;
      }

      .btn {
        width: 82px;
        margin: auto;

        .cancel {
          width: 82px;
          height: 30px;
          background-color: rgb(83, 255, 241);
          border-radius: 2px;
          font-size: 13px;
          color: #fff;
          outline: none;
          border: none;
          cursor: pointer;
        }
      }
    }
  }
}

// 展示内容的盒子
.blog {
  width: 800px;
  margin: auto;
  margin-top: 100px;

  .blog-box {
    width: 780px;
    height: 110px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    position: relative;
    z-index: 300;
    box-shadow: 0 0 1px 0px rgba(0, 0, 0, 0.3), 0 0 6px 2px rgba(0, 0, 0, 0.15);
  }
}

// 加载更多
.loadMore {
  user-select: none;
  width: 800px;
  margin: auto;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 4px;
  background-color: #edede5;
  margin-bottom: 150px;
  position: relative;
  top: 20px;
  z-index: 300;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 1px 0px rgba(0, 0, 0, 0.3), 0 0 6px 2px rgba(0, 0, 0, 0.15);
}

// 页脚
.foot {
  width: 100%;
  height: 200px;
  background-color: #eeede5;
  display: flex;
  justify-content: center;
  align-items: center;
}